home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
os2
/
pvm34b3.zip
/
pvm34b3
/
pvm3
/
libfpvm
/
pvmfdelhost.m4
< prev
next >
Wrap
Text File
|
1997-07-22
|
523b
|
30 lines
/* $Id: pvmfdelhost.m4,v 1.2 1996/10/04 15:27:00 pvmsrc Exp $ */
#include "pvm3.h"
#include "pvm_consts.h"
void
FUNCTION(pvmfdelhost) ARGS(`STRING_ARG(host), info')
STRING_ARG_DECL(host);
int *info;
{
char thost[MAX_HOST_NAME + 1];
char *ptr = thost;
int cc;
/*
* Copy the host name to make sure there's
* a NUL at the end.
*/
if (ftocstr(thost, sizeof(thost), STRING_PTR(host), STRING_LEN(host))) {
*info = PvmBadParam;
return;
}
*info = pvm_delhosts(&ptr, 1, &cc);
if (*info >= 0)
*info = cc;
}